package org.lt.resume.controller.resume;

import org.lt.resume.service.resumeserviceInterface.ResumeServiceInterface;

import com.opensymphony.xwork2.ActionSupport;

public class DeleteResumeController  extends ActionSupport  {

	/** **/
	private static final long serialVersionUID = 8597372270274011433L;

	private ResumeServiceInterface resumeService;

	private String id;

	@Override
	public String execute() throws Exception {
		
		if (id==null) {
			System.out.println("id is null");
		}
		int recordId = Integer.valueOf(id);
		resumeService.deleteResumeById(recordId);
		return null;
	}

	public ResumeServiceInterface getResumeService() {
		return resumeService;
	}
	public void setResumeService(ResumeServiceInterface resumeService) {
		this.resumeService = resumeService;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
